<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录页面</title>
    <link href="/static/css/bootstrap.css" rel="stylesheet">
    <script type="text/javascript" src="/static/js/jquery-3.2.1.js"></script>
    <script type="text/javascript" src="/static/js/echarts.js"></script>
</head>
<body>


<form:form cssStyle="text-align: center" method="post" action="login" modelAttribute="user" enctype="multipart/form-data">
    用户名：<form:input path="username"/>
    <form:errors path="username" cssStyle="color: red"/><br><br>
    密码：<form:password path="pwd"/>
    <form:errors path="pwd" cssStyle="color: red"/><br><br>
    <input type="submit" value="登录">
    <br><br>
    —————————— 第三方登录 ——————————<br>
    <a href="https://gitee.com/oauth/authorize?client_id=43d6f3c9dc78fb8e4d6a028a5fa1ead139e825ba4df8154b20f5e5b1eeb451ba&redirect_uri=http://localhost:8080/user/auth&response_type=code">gitee登录</a>
</form:form>


</body>
</html>
